// const STORAGE_KEY = "todos-vuejs";
export default {
  fetch(storageKey) {
    return JSON.parse(window.localStorage.getItem(storageKey) || "[]");
  },
  save(storageKey, todos) {
    window.localStorage.setItem(storageKey, JSON.stringify(todos));
  },
  clear() {
    window.localStorage.clear();
  }
};
